<?php

namespace App\Http\Requests;

class InstallRequest extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            "DB_HOST" => "required",
            "DB_DATABASE" => "required",
            "DB_USERNAME" => "required|between:2,100",
            "DB_PORT" => "required|numeric",
            "demo_data" => "boolean",
            "site_name" => "required",
            "admin" => "required|between:2,50",
            "password" => "required|confirmed|between:6,50",
            "password_confirmation" => "required|between:6,50",
            "REDIS_HOST" => "required",
            "REDIS_PORT" => "required",
        ];
    }

    public function messages()
    {
        return [

        ];
    }
}
